var jwt = require('jwt-simple'),
  tokenSecret = '&GD%$#_GFdswew._+';

var encode = function (data) {
  return jwt.encode(data, tokenSecret);
};

var decode = function (data) {
  return jwt.decode(data, tokenSecret);
};

module.exports = {
  encode: encode,
  decode: decode
};